<%@ page contentType="text/html;charset=UTF-8"  %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/admin/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/admin/css/admin.css">
    <script src="https://cdn.bootcss.com/jquery/1.11.1/jquery.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="${pageContext.request.contextPath}/${sessionScope.user.picPath}?random=${randomNum}" class="radius-circle rotate-hover" height="50" alt=""/>后台管理中心</h1>
    </div>
    <div class="head-l"><a class="button button-little bg-green" href="${pageContext.request.contextPath}/GetPageServlet" target="_blank"><span class="icon-home"></span>前台首页</a>
        &nbsp;&nbsp;
        <a class="button button-little bg-red" href="${pageContext.request.contextPath}/login"><span class="icon-power-off"></span> 退出登录</a></div>
</div>
<div class="leftnav">
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
    <h2><span class="icon-pencil-square-o"></span>基本设置</h2>
    <ul style="display:block">
        <li><a href="${pageContext.request.contextPath}/BackPicServlet?method=getBackPic" target="right"><span class="icon-tag"></span>首页轮播</a></li>
        <li><a href="${pageContext.request.contextPath}/IntroductionServlet?method=getAdminIntroduction" target="right"><span class="icon-tag"></span>简介管理</a></li>
        <li><a href="${pageContext.request.contextPath}/InfoServlet?method=adminGetInfo" target="right"><span class="icon-tag"></span>资讯管理</a></li>
        <li><a href="${pageContext.request.contextPath}/VideoServlet?method=getAdminVideo" target="right"><span class="icon-tag"></span>视频管理</a></li>
        <li><a href="${pageContext.request.contextPath}/DepartmentServlet?method=getAdminDepartment" target="right"><span class="icon-tag"></span>部门管理</a></li>
        <li><a href="${pageContext.request.contextPath}/WorkServlet?method=adminGetWorks" target="right"><span class="icon-tag"></span>成就管理</a></li>
        <li><a href="${pageContext.request.contextPath}/CharacterServlet?type=-1" target="right"><span class="icon-tag"></span>成员管理</a></li>
        <li><a href="${pageContext.request.contextPath}/MessageBoardServlet?method=adminGetMessageBoard" target="right"><span class="icon-tag"></span>留言管理</a></li>
    </ul>
    <h2><span class="icon-user"></span>管理员设置</h2>
    <ul>
        <li><a href="${pageContext.request.contextPath}/UserServlet?method=changeSelf" target="right"><span class="icon-tag"></span>个人管理</a></li>
        <li><a href="${pageContext.request.contextPath}/UserServlet?method=modifyPassword" target="right"><span class="icon-tag"></span>修改密码</a></li>
    </ul>
</div>
<script type="text/javascript">
    $(function () {
        $(".leftnav h2").click(function () {
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function () {
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>
<ul class="bread">
    <li><a href="${pageContext.request.contextPath}/WelcomeServlet" target="right" class="icon-home">首页></a></li>
    <li><a href="#" id="a_leader_txt">欢迎页面</a></li>
    <li><b>当前语言：</b><span style="color:red;">中文</span>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="#">中文</a> &nbsp;&nbsp;<a href="#">英文</a></li>
</ul>
<div class="admin">
    <iframe scrolling="auto" rameborder="0" src="${pageContext.request.contextPath}/WelcomeServlet" name="right" width="100%" height="100%"></iframe>
</div>
</body>
</html>
